﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="HyperLinkList.aspx.cs" Inherits="web.admin.HyperLinkList" 
    Title="链接列表" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript" src="../JavaScripts/common.js"></script>
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Current_Item" id="TD1"><a id="listUrl" href="HyperLinkList.aspx" runat="server">链接列表</a></td>
                                <td class="Default_Item" id="TD2"><a id="addUrl" href="AddHyperLink.aspx" runat="server">添加链接</a></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <%--<tr>
                <td  style="FONT-SIZE: 12px">
                    <asp:Label ID="GroupName" runat="server"/>
                    <asp:Label ID="label1" Text="新闻检索：" runat="server" />&nbsp;
                    <asp:TextBox ID="keyWord" Text="" runat="server"  Columns="40"/>&nbsp;
                    <asp:Button runat="server" ID="search" text="检索" OnClick="search_Click"/> &nbsp;
                    <asp:Button ID="DeleteBtn" runat="server" Text="删除选中项" OnClick="DeleteBtn_Click" OnClientClick='return confirm("确定要删除吗?")' />
                </td>
                <br />
            </tr>--%>
	        <tr>
	            <td>
                   <asp:GridView ID="hyperLinkList" runat="server" AutoGenerateColumns="False"  DataKeyNames="id" SkinID="orange">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label1" Text="标题" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" Text='<%# Eval("Title") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="40%" HorizontalAlign="Left"/>
                            </asp:TemplateField> 
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label3" Text="链接地址" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label4" Text='<%# Eval("Brif") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="50%" HorizontalAlign="Left"/>
                            </asp:TemplateField>                              
                            <asp:HyperLinkField Text="修改" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="HyperLinkListEdit.aspx?id={0}" />                             
                            <asp:HyperLinkField Text="删除" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="HyperLinkList.aspx?id={0}" />
                                                    
                        </Columns>
                    </asp:GridView> 
	            </td>
	        </tr>
	    </tbody>
    </table>	  
</asp:Content>
